package com.scalar.chiptrack.users.notification.actioncommands;

import com.scalar.chiptrack.commons.Constants;
import com.scalar.chiptrack.actioncommands.ActionCommand;

/**
 * User: KP
 * Date: Sep 3, 2006
 * Time: 5:08:54 PM
*/
public class NotificationsActionCommandFactory implements Constants
{
    public static ActionCommand getActionCommand( String action )
    {
        if ( action == null || ACTION_LOAD.equalsIgnoreCase( action ) )
        {
            return new NotificationsLoadUsersCommand();
        }
        if ( ACTION_LOAD_USER_NOTIFICATON_DETAILS.equalsIgnoreCase( action ) )
        {
            return new NotificationsLoadUsersDetailsCommand();
        }
        if ( ACTION_SAVE.equalsIgnoreCase( action ) )
        {
            return new NotificationsSaveCommand();
        }
        return null;
   }
}
